package com.sptpc.demo1.repository;

import com.sptpc.demo1.model.Drink;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * 1 要操作的类型实体类    2主键的类型
 */
public interface DrinkRepository extends JpaRepository<Drink, Integer> {
    List<Drink> findDrinkByCategory_Id(Integer id);

}
